# Maintainer: Hugo Osvaldo Barrera <hugo@whynothugo.nl>
pkgname=docker-rootless-extras
pkgver=24.0.4
pkgrel=0
pkgdesc="Extras to run docker as in rootless mode"
url="https://docs.docker.com/engine/security/rootless/"
arch="noarch"
license="Apache-2.0"
depends="docker rootlesskit slirp4netns fuse-overlayfs"
source="
	dockerd-rootless-$pkgver.sh::https://raw.githubusercontent.com/moby/moby/v$pkgver/contrib/dockerd-rootless.sh
	docker-rootless-extras.conf
	"
options="!check" # just a script with no tests

package() {
	install -Dm755 "$srcdir/dockerd-rootless-$pkgver.sh" "$pkgdir/usr/bin/dockerd-rootless"
	install -Dm644 "$srcdir/docker-rootless-extras.conf" "$pkgdir/etc/modules-load.d/docker-rootless-extras.conf"
}

sha512sums="
bda9fd1fed155ae28f0b3d64f2b094bdef63325aecc72c2d9629746cab704703c7b93976c71bba06af9882bcdf06ed71e71f4fd49700df18d28d5f97360d240a  dockerd-rootless-24.0.4.sh
45499bbd9d607cb782b014a2d5697d7279f327ac630accf249a13785d91e15fb0ba1ae2edc10b6b42fcf40b7ce23ef160a40d8cda17b3084d68fe8c54a84b8f4  docker-rootless-extras.conf
"
